class TeamPageDataModel {

  Tema tema;
  DivideTnto divideTnto;
  Fllowe fllowe;
  List<TemaNembers> temaNembers;

  TeamPageDataModel.fromJsonMap(Map<String, dynamic> map):
        tema = Tema.fromJsonMap(map["tema"]),
        divideTnto = DivideTnto.fromJsonMap(map["divideTnto"]),
        fllowe = Fllowe.fromJsonMap(map["fllowe"]),
        temaNembers = List<TemaNembers>.from(map["temaNembers"].map((it) => TemaNembers.fromJsonMap(it)));

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['tema'] = tema == null ? null : tema.toJson();
    data['divideTnto'] = divideTnto == null ? null : divideTnto.toJson();
    data['flowe'] = fllowe == null ? null : fllowe.toJson();
    data['temaNembers'] = temaNembers != null ?
    this.temaNembers.map((v) => v.toJson()).toList()
        : null;
    return data;
  }
}



class Tema {

  String total;
  String directly;
  String indirect;

  Tema.fromJsonMap(Map<String, dynamic> map):
        total = map["total"],
        directly = map["directly"],
        indirect = map["indirect"];

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total'] = total;
    data['directly'] = directly;
    data['indirect'] = indirect;
    return data;
  }
}



class Fllowe {

  String total;
  String today;
  String yestday;

  Fllowe.fromJsonMap(Map<String, dynamic> map):
        total = map["total"],
        today = map["today"],
        yestday = map["yestday"];

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total'] = total;
    data['today'] = today;
    data['yestday'] = yestday;
    return data;
  }
}


class DivideTnto {

  String total;
  String today;
  String yestday;

  DivideTnto.fromJsonMap(Map<String, dynamic> map):
        total = map["total"],
        today = map["today"],
        yestday = map["yestday"];

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['total'] = total;
    data['today'] = today;
    data['yestday'] = yestday;
    return data;
  }
}


class TemaNembers {

  String headImage;	//	用户头像
  String userName;	// 用户名称
  String userId;	// 用户ID
  String time;	//	时间
  int bandingState; // 0 未绑定  1 已绑定
  int floweStat;		// 0 未跟单  1 已跟单
  int relation;		// 0 直接  1 间接
  String earnings;	// 收益分成
  String todyFlowe;	//	今日跟单
  String floweTotal;	//	累计跟单
  int fauild;	// 0 正常 1 异常

  TemaNembers.fromJsonMap(Map<String, dynamic> map):
        headImage = map["headImage"],
        userName = map["userName"],
        userId = map["userId"],
        time = map["time"],
        bandingState = map["bandingState"],
        floweStat = map["floweStat"],
        relation = map["relation"],
        earnings = map["earnings"],
        todyFlowe = map["todyFlowe"],
        floweTotal = map["floweTotal"],
        fauild = map["fauild"];

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['headImage'] = headImage;
    data['userName'] = userName;
    data['userId'] = userId;
    data['time'] = time;
    data['bandingState'] = bandingState;
    data['floweStat'] = floweStat;
    data['relation'] = relation;
    data['earnings'] = earnings;
    data['todyFlowe'] = todyFlowe;
    data['floweTotal'] = floweTotal;
    data['fauild'] = fauild;
    return data;
  }
}

